package com.reform.pojo.phase;

import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.reform.utils.VerifycUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 批次表
 * </p>
 *
 * @author mortale
 * @since 2021-07-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Batch对象", description="批次表")
public class Batch implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "批次编号")
    @TableId("batch_id")
    private String batchId;

    @ApiModelProperty(value = "批次名称(输入)")
    @TableField("batch_name")
    private String batchName;

    @ApiModelProperty(value = "所属单位")
    private String company;

    @ApiModelProperty(value = "批次级别编号")
    @TableField("level_id")
    private Integer levelId;

    @ApiModelProperty(value = "批次级别编号")
    @TableField("level_name")
    private String level_name;

    @ApiModelProperty(value = "最大主持数")
    @TableField("max_host")
    private Integer maxHost;

    @ApiModelProperty(value = "最大参与数")
    @TableField("max_participants")
    private Integer maxParticipants;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "中期时间提醒")
    @TableField("middle_time")
    private LocalDate middleTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结项时间提醒")
    @TableField("post_time")
    private LocalDate postTime;

    public Batch(String batchId, String batchName, String company, Integer levelId, Integer maxHost, Integer maxParticipants, LocalDate middleTime, LocalDate postTime) {
        this.batchId = batchId;
        this.batchName = batchName;
        this.company = company;
        this.levelId = levelId;
        this.maxHost = maxHost;
        this.maxParticipants = maxParticipants;
        this.middleTime = middleTime;
        this.postTime = postTime;
    }
}
